<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="description" content="" />
<meta name="keywords" content="" /> 
<title>测试</title>
</head>
<body>
	<input type="button" value="点击" onclick="a(x)"  />
</body>
</html>
<script type="text/javascript">
	var x="22";
	function a(name){
		var obj={};
		obj.name="zhangshang";
		document.write(name);
	}
</script>